<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>


<html>
  <head>
 <s:head theme="ajax"/>
 
    <title>expertsInput.jsp</title>
      <link rel="stylesheet" type="text/css" href="../css/counter.css">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href="../css/css.css">
		<script type="text/javascript">
	function validateUser(){
	
	
	if(document.getElementById('password').value==""||document.getElementById('repassword').value==""){
	
	alert("密码不能为空");
	return false;
	}
	if(document.getElementById('password').value!=document.getElementById('repassword').value){
	alert("两次密码不一致！");
	return false;
	}
	

  if(document.getElementById('oldpassword').value==""){
    alert("旧密码不能为空！");
	return false;
	}
	
	
	}
	</script>

  </head>
  
  <body>
    <br>
<form  method="post" action="changeExpertPassword.action" onsubmit="return validateUser();">
<s:hidden name="expertModel.FBh" value="%{#session.expertModel.FBh}"></s:hidden>
		<TABLE cellSpacing="0" cellPadding="0" width="100%" align="center"
			border="0">
			<TBODY>
				<TR>
					<TD>
						<IMG src="../images/manage/arron1.gif">
						<FONT class="font_lv">专家密码修改
						</FONT>
					</TD>
				</TR>
			</TBODY>
		</TABLE>
    <table cellSpacing="1" cellPadding="1" width="100%" align="center"
		border="0">
		<tr>
		<td class=line>
		<table height="100%" cellSpacing=1 cellPadding=2 width="100%"
					bgcolor="#CCCCCC"  border=0>
	  <tr bgcolor="#FFFFFF">
        <td height="25" colspan="2" align="center"  background="../images/manage/title_bg.jpg"   class="font_12_B_w">更换密码</td>
		<td height="25" colspan="2"  background="../images/manage/title_bg.jpg" >	注意
									<font color="red">*</font>表示必填项；英文和数字应为半角字符</td>
    
        
      
      </tr>
	  <s:set name="mm" value="#session.expertModel.mm"></s:set>
      <tr bgcolor="#FFFFFF">
        <td width="215" height="25">专家旧密码</td>
        <td width="265">
       <input type="password" id="oldpassword" class="id_kuang" value="${mm}"  name="logininfo.repassword">
        </td>
		 <td width="509" height="25"><font color="red">*</font></td>
      </tr>
      <tr bgcolor="#FFFFFF">
        <td height="27">密码</td>
        <td><s:password name="expertModel.mm" theme="simple"  id="password"  cssClass="id_kuang" /></td>
		 <td width="509" height="25"><font color="red">*</font></td>
      </tr>
	   <tr bgcolor="#FFFFFF">
        <td height="27">重新输入密码</td>
        <td><input type="password" id="repassword" class="id_kuang"  name="logininfo.repassword"></td>
		 <td width="509" height="25"><font color="red">*</font></td>
      </tr>
       <tr bgcolor="#FFFFFF">
        <td height="33">&nbsp;</td>
        <td>  <input type="submit" name="Submit" class="btn1" value="提交">
          <input type="button" class="btn1"  onclick="history.go(-1);" name="Submit2"  value="取消" ></td>
		   <td width="509" height="25">&nbsp;</td>
      </tr>
    </table>
	
	</td>
	
	</tr>
	
	</table>
	</form>
	<s:url id="smdUrl" namespace="/admin" action="verifyPassword" />
	
	<s:set name="name" value="#session.logininfo.name" />
	
  </body>


</html>